/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author yoann
 */
class ModeAccess {

    /**
     *determine if a target (employee, activity,...) is accessible within the current mode
    */
    public static boolean isAvailableInCurrentMode(String currentMode, int targetMode ){
            return ((currentMode==null || currentMode.equalsIgnoreCase("sandbox")) && targetMode==1) || (currentMode != null && (currentMode.equalsIgnoreCase("budget")) && targetMode==0);
    }
}

